 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
 	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
 	<title>内容管理</title>
 	<link rel="stylesheet" href="<?php echo __PUBLIC__ ?>/css/index.css" />			
 </head>
 <body>


 	
<div class="first"> <li></li>
<li class="id">序号</li><!-- <li class="filename textCenter">标题</li> --><li  class='way textCenter'>内容</li><li class="size textCenter">发布时间</li><li class="down">用户</li><li class="up">编辑</li><li class="up">删除</li>
</div>
<!-- <?php var_dump($this->data) ?> -->
<?php foreach ($this->data  as $k => $v) : ?> 


<div class="first"> <li></li>
<li class="id"><?php echo $k ?></li><!-- <li class="filename"><?php echo  $v[''] ?></li> --><li  class='way'><?php echo $v['content'] ?></li><li class="size"><?php echo $v['time'] ?></li><li class="down"><?php echo $v['user'] ?><a href=""></a></li><li class="down"><a href="javascript:edit(<?php echo $k ?>)">编辑/查看</a></li><li class="up"><a href="javascript:del(<?php echo $k ?>)">删除</a></li>
</div>
<?php endforeach ?>

<script type="text/javascript">
	function del($k){
	var confirm = window.confirm("确认删除么？");
	if(confirm){
		window.location.href='./admin.php?c=Index&a=delContent&id='+$k;
	}
	}
	function edit($k){
		window.location.href='./admin.php?c=Index&a=editContent&id='+$k;
	}
</script>				

 	
 	
 	
 	
 	
 	
 	
 </body>
 </html>